from kivy.app import App
from kivy.core.window import Window
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.relativelayout import RelativeLayout
from kivy.properties import ObjectProperty
from kivy.uix.label import Label
from kivy.uix.screenmanager import Screen, ScreenManager
from kivy.uix.button import Button
from new import *


class ScrollButton(Button):
    pass


class BeginScreen(Screen):
    def add(self):
        win = self.ids.win
        for i in range(30):
            win.add_widget(ScrollButton(text='me'))

    def create_room(self):
        Window.size = (600,300)
        self.manager.current = "game"
        pass



class PersonScreen(Screen):
    pass


class GameScreen(Screen):
    pass


class MyApp(App):
    def build(self):
        Window.size = (300, 600)
        root = ScreenManager()
        screen_begin = BeginScreen(name="begin")
        screen_game = GameScreen(name="game")
        screen_person = PersonScreen(name='person')
        root.add_widget(screen_begin)
        root.add_widget(screen_game)
        root.add_widget(screen_person)
        screen_begin.add()
        return root


if __name__ == '__main__':
    MyApp().run()
